<%--
  Created by IntelliJ IDEA.
  User: ZT171
  Date: 2024/10/11
  Time: 19:52
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<html>
<head>
    <title>Title</title>
    <link rel="stylesheet" href="/static/layui/css/layui.css">
</head>
<body>
<form class="layui-form" method="post" action="/student/updateSave">
    <%-- 隐藏域--%>
    <input type="hidden" name="sId" value="${student.sId}">

    <div class="layui-form-item">
        <label class="layui-form-label">姓名</label>
        <div class="layui-input-inline layui-input-wrap">
            <input type="text" name="studentName" value="${student.studentName}" lay-verify="required" autocomplete="off" lay-affix="clear" class="layui-input">
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">学号</label>
        <div class="layui-input-inline layui-input-wrap">
            <input type="text" name="studentNum" value="${student.studentNum}" lay-verify="required" autocomplete="off" lay-affix="clear" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">性别</label>
        <div class="layui-input-inline layui-input-wrap">
            <input type="text" name="gender" value="${student.gender}" lay-verify="required" autocomplete="off" lay-affix="clear" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">年龄</label>
        <div class="layui-input-inline layui-input-wrap">
            <input type="text" name="age" value="${student.age}" lay-verify="required" autocomplete="off" lay-affix="clear" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">出生日期</label>
        <div class="layui-input-inline layui-input-wrap">
            <input type="text" id="birthday" name="birthday" value="${student.birthday}" lay-verify="required" autocomplete="off" lay-affix="clear" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">班级</label>
        <div class="layui-input-inline layui-input-wrap">
            <input type="text" name="classId" value="${student.classId}" lay-verify="required" autocomplete="off" lay-affix="clear" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">宿舍</label>
        <div class="layui-input-inline layui-input-wrap">
            <input type="text" name="hostelId" value="${student.hostelId}" lay-verify="required" autocomplete="off" lay-affix="clear" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">联系电话</label>
        <div class="layui-input-inline layui-input-wrap">
            <input type="text" name="phone" value="${student.phone}" lay-verify="required" autocomplete="off" lay-affix="clear" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">电子邮件地址</label>
        <div class="layui-input-inline layui-input-wrap">
            <input type="text" name="email" value="${student.email}" lay-verify="required" autocomplete="off" lay-affix="clear" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">家庭住址</label>
        <div class="layui-input-inline layui-input-wrap">
            <input type="text" name="homeAddress" value="${student.homeAddress}" lay-verify="required" autocomplete="off" lay-affix="clear" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">紧急联系人姓名</label>
        <div class="layui-input-inline layui-input-wrap">
            <input type="text" name="emergencyContact" value="${student.emergencyContact}" lay-verify="required" autocomplete="off" lay-affix="clear" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">紧急联系人电话</label>
        <div class="layui-input-inline layui-input-wrap">
            <input type="text" name="emergencyContactPhone" value="${student.emergencyContactPhone}" lay-verify="required" autocomplete="off" lay-affix="clear" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">专业</label>
        <div class="layui-input-inline layui-input-wrap">
            <input type="text" name="major" value="${student.major}" lay-verify="required" autocomplete="off" lay-affix="clear" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">学生状态</label>
        <div class="layui-input-inline layui-input-wrap">
            <input type="text" name="status" value="${student.status}" lay-verify="required" autocomplete="off" lay-affix="clear" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">删除状态</label>
        <div class="layui-input-inline layui-input-wrap">
            <input type="text" name="delFlage" value="${student.delFlag}" lay-verify="required" autocomplete="off" lay-affix="clear" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">创建者</label>
        <div class="layui-input-inline layui-input-wrap">
            <input type="text" name="createBy" value="${student.createBy}" lay-verify="required" autocomplete="off" lay-affix="clear" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">创建时间</label>
        <div class="layui-input-inline layui-input-wrap">
            <input type="text" id="createTime" name="createTime" value="${student.createTime}" lay-verify="required" autocomplete="off" lay-affix="clear" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">最后更新者</label>
        <div class="layui-input-inline layui-input-wrap">
            <input type="text" name="updateBy" value="${student.updateBy}" lay-verify="required" autocomplete="off" lay-affix="clear" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">最后更新时间</label>
        <div class="layui-input-inline layui-input-wrap">
            <input type="text" id="updateTime" name="updateTime" value="${student.updateTime}" lay-verify="required" autocomplete="off" lay-affix="clear" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">备注</label>
        <div class="layui-input-inline layui-input-wrap">
            <input type="text" name="remark" value="${student.remark}" lay-verify="required" autocomplete="off" lay-affix="clear" class="layui-input">
        </div>
    </div>



    <div class="layui-input-block">
        <button type="submit" class="layui-btn" lay-submit lay-filter="demo1">立即提交</button>
        <button type="reset" class="layui-btn layui-btn-primary">重置</button>
    </div>
    </div>

    <script src="/static/layui/layui.js"></script>
    <script>
        layui.use(function(){
            var laydate = layui.laydate;
            laydate.render({
                elem: '#birthday'

            });
        });
        layui.use(function(){
            var laydate = layui.laydate;
            laydate.render({
                elem: '#createTime'

            });
        });
        layui.use(function(){
            var laydate = layui.laydate;
            laydate.render({
                elem: '#updateTime'

            });
        });
    </script>

</form>
</body>
</html>
